/**
 * #[Home.java] 	version:1.0	15-12-2013
 */
package cl.cesarg.agenda.controller;

import java.util.Locale;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import cl.cesarg.agenda.model.facade.UserFacade;

/**
 * @author 	Cesar Gonzalez		cesar@cesarg.cl		http://twitter.com/donpandix
 * @version	1.0 15-12-2013
 *
 */
@Controller
public class HomeController implements IHomeController {

	@Autowired
	private UserFacade _userFacade;
	
	
	/* (non-Javadoc)
	 * @see cl.cesarg.agenda.controller.IHome#welcome(java.util.Locale, org.springframework.ui.Model)
	 */
	@Override
	@RequestMapping(value="/")
	public String welcome(Locale locale, Model model) {
		
		//StartUp Application
		_userFacade.startUpApplication();
		
		
		return "welcome";
	}

}
